package cn.com.czpb.client.module.news.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import cn.com.czpb.client.R;
import cn.com.czpb.client.model.news.HotSearchBean;

import java.util.List;

/**
 * Created by 猪猪侠 on 2017/8/9.
 */

public class HotSearchAdapter extends BaseQuickAdapter<HotSearchBean,BaseViewHolder> {


    public HotSearchAdapter(@Nullable List<HotSearchBean> data) {
        super(R.layout.item_search_history, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HotSearchBean item) {
        helper.setText(R.id.tv_content_id,item.getContent())
        .addOnClickListener(R.id.tv_content_id);
    }
}
